package music_store.ms.controller.pages.portal;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class MusicPageController {

    @RequestMapping("/music/index")
    public String userIndex(){
        return "/portal/music/musicIndex";
    }

    @RequestMapping("/music/search")
    public String searchMusicIndex(){
        return "/portal/music/search/searchMusicIndex";
    }

    //search music method below:
    @RequestMapping("/music/search/musicname")
    public String search_music_by_musicname(){
        return "/portal/music/search/musicname";
    }

    @RequestMapping("/music/search/artist")
    public String search_music_by_artist(){
        return "/portal/music/search/artist";
    }

    @RequestMapping("/music/search/albumname")
    public String search_music_by_albumname(){
        return "/portal/music/search/albumname";
    }
    //search music method above;

    @RequestMapping("/music/detail")
    public String getMusicDetail(){
        return "/portal/music/detail";
    }

    @RequestMapping("/music/addMusic")
    public String add_likes_music(){
        return "/portal/music/addMusic";
    }



}
